{*?template charset=utf-8?*}
<div class="content-view-full">
    <div class="class-article">

        <div class="attribute-header">
            <h1>{attribute_view_gui attribute=$node.object.data_map.title}</h1>
        </div>
		
		{if $node.object.data_map.image.has_content}
            <div class="attribute-main-image">
                {attribute_view_gui attribute=$node.data_map.image image_class=newslarge}
            </div>
        {/if}
		
		<div class="attribute-date">
			<strong>{"Date"|i18n("nxtri/article")}</strong> {$node.data_map.date.content.timestamp|l10n(shortdate)}
		</div>
		
		<div class="attribute-intro">
            {attribute_view_gui attribute=$node.data_map.intro}
        </div>
		
		<div class="attribute-body">
            {attribute_view_gui attribute=$node.data_map.body}
        </div>
		
		{if $node.data_map.html.has_content}
		<div class="attribute-html">
		    {$node.data_map.html.content}
		</div>
		{/if}

        {if $node.object.data_map.ressources.has_content}
            <div class="attribute-ressources">
				<h3>Ressources</h3>
                {attribute_view_gui attribute=$node.object.data_map.ressources class=text_linked render_as_list=true}
            </div>
        {/if}
		{*$node.object.data_map.ressources|attribute( 'show' , 3)*}
		
		

        {* Should we allow comments? *}
        {section show=is_unset( $versionview_mode )}
        {section show=$node.data_map.enable_comments.content}
		<div class="comments"
            <h2>{"Comments"|i18n("design/base")}</h2>
                <div class="content-view-children">
                    {section name=Child loop=fetch_alias( comments, hash( parent_node_id, $node.node_id ) )}
                        {node_view_gui view='line' content_node=$:item}
                    {/section}
                </div>

                {* Are we allowed to create new object under this node? *}
                {section show=fetch( content, access,
                                     hash( access, 'create',
                                           contentobject, $node,
                                           contentclass_id, 'comment' ) )}
                    <form method="post" action={"content/action"|ezurl}>
                    <input type="hidden" name="ClassIdentifier" value="comment" />
                    <input type="hidden" name="NodeID" value="{$node.node_id}" />
                    <input class="button new_comment" type="submit" name="NewButton" value="{'New Comment'|i18n( 'design/base' )}" />
                    </form>
                {section-else}
                    <h3>{"You are not allowed to create comments."|i18n("design/base")}</h3>
                {/section}
		</div>
        {/section}
        {/section}

    </div>
</div>